package tuling.dubbo.server;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class SpringSimpleServerV5 {

    public static void main(String[] args) throws IOException {
//        System.out.println("xxxxx");
        System.setProperty("java.net.preferIPv4Stack", "true");
//        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-provide.xml");
//        context.start();

        ApplicationContext context = new ClassPathXmlApplicationContext("/spring-provide.xml");
        ((ClassPathXmlApplicationContext) context).start();

        System.in.read();
    }
}
